<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        for (var i = 0; i <= 100; i ++) {
            for (var j = 0; j <= 100; j ++) {
                for (var k = 0; k <= 100; k ++) {
                    if (i + j + k == 100 && 3 * i + 2 * j + k <= 200) {
                        console.log(`苹果${i}个,鸭梨${j}个,桃子${k}个`)
                    }
                }
            }
        }
    </script>
</body>
</html>